package cn.jd.order.domain;

import java.math.BigDecimal;
import java.util.Date;

import cn.jd.basic.domain.BasicDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author jd
 * @since 2022-11-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderProductDetail extends BasicDomain {



    /**
     * 服务名称
     */
    private String name;
    /**
     * 存放fastdfs地址，多个资源使用，分割
     */
    private String resources;
    private BigDecimal saleprice;
    private Date offsaletime;
    private Date onsaletime;
    /**
     * 状态：0拒单 1接单
     */
    private Long state;
    private String costprice;
    private Date createtime=new Date();
    private Long salecount;
    private Long productId;
    private Long orderId;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getResources() {
        return resources;
    }

    public void setResources(String resources) {
        this.resources = resources;
    }

    public BigDecimal getSaleprice() {
        return saleprice;
    }

    public void setSaleprice(BigDecimal saleprice) {
        this.saleprice = saleprice;
    }

    public Date getOffsaletime() {
        return offsaletime;
    }

    public void setOffsaletime(Date offsaletime) {
        this.offsaletime = offsaletime;
    }

    public Date getOnsaletime() {
        return onsaletime;
    }

    public void setOnsaletime(Date onsaletime) {
        this.onsaletime = onsaletime;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public String getCostprice() {
        return costprice;
    }

    public void setCostprice(String costprice) {
        this.costprice = costprice;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Long getSalecount() {
        return salecount;
    }

    public void setSalecount(Long salecount) {
        this.salecount = salecount;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "OrderProductDetail{" +
        ", name=" + name +
        ", resources=" + resources +
        ", saleprice=" + saleprice +
        ", offsaletime=" + offsaletime +
        ", onsaletime=" + onsaletime +
        ", state=" + state +
        ", costprice=" + costprice +
        ", createtime=" + createtime +
        ", salecount=" + salecount +
        ", productId=" + productId +
        ", orderId=" + orderId +
        "}";
    }
}
